#ifndef __USER_H_
#define __USER_H_

#include <string>

using namespace std;

//匹配User表的ORM类(映射表的字段)
class User {
public:
	explicit User(int id = -1, string name = "", string password = "",
		string state = "offline")
		: m_id(id), m_name(name), m_password(password), m_state(state) {
	}

  inline void setId(int id) { m_id = id; }
  inline void setName(string name) { m_name = name; }
  inline void setPassword(string password) { m_password = password; }
  inline void setState(string state) { m_state = state; }

  inline int getId() const { return m_id; }
  inline string getName() const { return m_name; }
  inline string getPassword() const { return m_password; }
  inline string getState() const { return m_state; }
private:
    int m_id;
    string m_name;
    string m_password;
    string m_state;
};

#endif // !__USER_H_